package com.dxy.dxyproduct.VO;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class ProductCategoryVO {


    private Integer categoryId;
    @NotBlank(message = "categoryName 不能为空")
    private String categoryName;
    @NotNull(message = "parentId 不能为空")
    private Integer parentId;
//    @Pattern(regexp = "(http|ftp|https):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&amp;:/~\\+#]*[\\w\\-\\@?^=%&amp;/~\\+#])?", message = "参数错误, URL非法")
    private String categoryIcon;

}
